<?php
	$arr=parse_ini_file("db.ini");
	//var_dump($arr);
	header("content-type:text/html;charset=utf-8");
	$con=mysql_connect($arr["host"],$arr["username"],$arr[userpass]);
	/*$con=mysql_connect("localhost","root","dx123");*/
	if(!$con)
	{
		die("出错了").mysql_error();
	}
	else
	{
		echo "成功";
	}
?>